import request from '@/utils/request.js'

export const reqGetWelfareList = (data) => request.get('/wealRooms', { params: data })

export const reqChangeWelfareStatus = (id, data) => request.put('/wealRooms/status/' + id, data)

export const reqGetWelfarePrize = (data) => request.get('/wealRoomsPrizes', { params: data })

export const reqGetWelfareOrder = (id, data) =>
  request.get('/wealRoomsOrdersPrizes/' + id, { params: data })

export const reqGetWelfareJoin = (id, data) =>
  request.get('/wealRoomsParticipations/' + id, { params: data })

export const reqGetWelfareOrderList = (data) =>
  request.get('/wealRoomsOrdersPrizes', { params: data })

export const reqAddWelfare = (data) => request.post('/wealRooms', data)

export const reqGetPrizeList = (data) => request.get('/common/getWealPrize', {params: data})

export const reqAddWelfarePrize = (data) => request.post('/wealRoomsPrizes', data)